<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<!--    <p:menu model="#{menu.model}" type="tiered"  style="width:200px"/>  -->
	<h:form>
		<p:menu style="width:200px">
			<p:menuitem value="Home" update="mainContent">
				<f:setPropertyActionListener target="#{home.mainContent}"
					value="/teste" />
			</p:menuitem>
			<p:menuitem value="Administrador" update="mainContent"
				rendered="#{authenticator.admin}">
				<f:setPropertyActionListener target="#{home.mainContent}"
					value="/private/admin/teste" />
			</p:menuitem>
			<p:menuitem value="Usuário" update="mainContent"
				rendered="#{authenticator.user}">
				<f:setPropertyActionListener target="#{home.mainContent}"
					value="/private/user/teste" />
			</p:menuitem>
		</p:menu>
	</h:form>
</ui:composition>